﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
                assembly=" Inovout.Kuajing"
				        namespace="Inovout.Kuajing.Models">

  <class name="ShipmentOrderItem" table="ShipmentOrderItem">
    <id name="Id" access="field.camelcase"
        column="ShipmentOrderItemId" type="Int32">
      <generator class="native" />
    </id>
    <property name="CommodityName"/>
    <property name="CommodityCode" />
    <property name="CommodityMeasurementUnit" />
    <property name="CommodityPrice" type="Decimal"/>
    <property name="CommodityQuantity" type="int" />
    <property name="Amount" />
    
    <many-to-one name="ShipmentOrder" column="ShipmentOrderId" foreign-key="FK_ShipmentOrderItem_ShipmentOrder" class="Inovout.Kuajing.Models.ShipmentOrder" />
    <many-to-one name="Commodity" column="CommodityId" foreign-key="FK_ShipmentOrderItem_Commodity" class="Inovout.Kuajing.Models.Commodity" />

    <property name="CreatedTime" access="field.camelcase" />
    <property name="CreatedUserName" access="field.camelcase" />
    <property name="ModifiedTime" access="field.camelcase" />
    <property name="ModifiedUserName" access="field.camelcase" />
    <property name="AccessedTime" access="field.camelcase" />
    <property name="AccessedUserName" access="field.camelcase" />
    <property name="Memo" />
    <property name="IsInvalid" />
  </class>
</hibernate-mapping>


